#include<stdio.h>
#include <stdlib.h>
#include<string.h>

typedef  struct 
{
   int a;
   float b;
}ListData;


typedef struct
{
    ListData* data;
    int memSize,dataSize;
} SequenceList;



//-------
//fuction about data
//-------
void Init(ListData* data);
int Judge(ListData* data,ListData* comData);
void DataCopy(ListData* des,ListData* res);
void show(ListData* data);


//-------
//fuction about list
//-------
    SequenceList* InitList(int size);
    int DestroyList(SequenceList* beDestroied);// return 0 or1
    void ClearList(SequenceList* beCleared);//return 0 or 1
    int IfEmpty(SequenceList* beJudged);//return 0 or 1
    int ListLength(SequenceList* list);//return length 
    ListData* Getelement(SequenceList* list,int location);//return element locate at the location
    // int LocateElement(SequenceList* list,const ListData* data,bool compare() );//find data by someway and return location
    int LocateElement(SequenceList* list,ListData* data); //find completely equal data and return location
    int Insert(SequenceList* list,int location,ListData* data);//return 0 or 1
    int Delet(SequenceList* list,int location); //return 0 or 1
    void DataShow(SequenceList* list);